export default {
    data: {
        weights: 75

    },
    props: {
        maxweight: {
            type:Number,
            default: 200,
        },
        autoweight: {
            type:Number,
            default: 10,
        },
        hmweight: {
            type:Number,
            default: 10,
        },
    },
    onInit() {
        this.$watch('autoweight', 'onPropertyChange');
        this.$watch('hmweight', 'onPropertyChange');
        this.weights = parseInt(this.autoweight)+parseInt(this.hmweight);
    },
    onPropertyChange(newW,oldW){
        this.weights = parseInt(this.autoweight)+parseInt(this.hmweight);
    },
    onLayoutReady(){

    },
}
